package com.aliyun.heiyu.powermaster.server.rotary.exception;

/**
 * @Description 通用异常
 * @Author shun.zhang
 * @Date 2020/8/4 14:13
 **/
public enum CommonExceptionEnum {
    PARAM_ERROR(800,"参数异常"),
    KEY_EMPTY(801,"主键不能为空");
    private int code;
    private String msg;
    CommonExceptionEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
